package com.hz.cheetah.hub.zookeeper;


import java.util.concurrent.ConcurrentHashMap;

/**
 * Created by yangchuan on 16/7/28.
 */
public class OneWayContext {

    final static ThreadLocal<String> line = new ThreadLocal<>();

    public static String get(){
        return line.get();
    }

    public static String pull(){
        String result =  line.get();
        //line.remove();
        return  result;
    }

    public static void register(String value){
        line.set(value);
    }

    public static void remove(){
        line.remove();
    }




}
